<?php

/* This is index for profile.
 * Aim of this page is to redirect direct view of profile or add details in profile.
 */

if(isset($_COOKIE['gid'])){
    echo 'yes';
    header('Location:view/profile');
}
else {
    echo 'no';
        header('Location:http://'.$_SERVER['HTTP_HOST'].'/salusme/');

}

?>